#include<stdio.h>

int fun1()
{
    int sum=0;
    for(int i=1;i<=100;i++)
    {
        sum+=i;
    }
    return sum;
}

int fun2(int a, int b)
{
    int sum=0;
    for(int i=a;i<=b;i++)
    {
        sum+=i;
    }
    printf("sum=%d\n",sum);
}

int main()
{
    int sum=fun1();
    printf("sum=%d\n",sum);

    int a=1,b=100;
    fun2(a,b);

    return 0;
}